package com.ouheng.shop.service;

import com.ouheng.shop.domain.ProductProductGroupDO;

import java.util.List;
import java.util.Map;

/**
 * 商品和商品分组中间表
 * 
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2018-08-22 13:46:58
 */
public interface ProductProductGroupService {
	
	ProductProductGroupDO get(Long id);
	
	List<ProductProductGroupDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(ProductProductGroupDO productProductGroup);
	
	int update(ProductProductGroupDO productProductGroup);
	
	int remove(Long id);
	
	int batchRemove(Long[] ids);
	
	int removeByProductid(Long pid);
	
	int removeByGroupid(Long groupid);
	
	List<Long> listProductidByGroupid(Long groupid);
}
